//引入axios
import request from '@/utils/request';
import type { InputNumberEmits } from 'element-plus';

//枚举地址
enum API {
    //获取SKU列表接口
    SKUURL="/admin/product/list/",
       //通过SKU的ID获取详情
       SKUINFO="/admin/product/getSkuById/"
}
//获取SKU列表
export const reqSkuList = (page:number,limit:number)=>request.get(API.SKUURL+`${page}/${limit}`);

//获取SKU详情的数据通过抽屉展示
export const reqSkuInfo = (skuId:number)=>request.get(API.SKUINFO+skuId);